import 'package:flutter/material.dart';

class ExpandedPage extends StatelessWidget {
  const ExpandedPage({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(appBar: AppBar(title:const Text('ExpandedPage')),
        body:Column(
          children: [
            Text('顶部内容'),
            //占满剩余空间
            Expanded(
              child: Container(
                color: Colors.blue,
                child: Center(child: Text('占据剩余空间')),
              ),
            ),
            Text('底部内容'),
          ],
        )
    );
  }
}
